package kr.hkit.androidcomplete02.ch11;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;

public class Ch11_ImageButtonText extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch11_imagebuttontext);

		ImageButton imgbtn = (ImageButton) findViewById(R.id.imagebtn);
		imgbtn.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(Ch11_ImageButtonText.this, "Image Button Clicked",
						Toast.LENGTH_SHORT).show();
			}
		});

	}
}